home *** CD-ROM | disk | FTP | other *** search
/ Nebula 2 / Nebula Two.iso / Apps / SoundApps / Patchmix / Source / UnitGen.m < prev    next >
Encoding:
Text File  |  1995-06-12  |  931 b   |  80 lines

  1. /* Generated by Interface Builder */
  2.  
  3. #import "UnitGen.h"
  4. #import "Instrum.h"
  5.  
  6. @implementation UnitGen
  7.  
  8.  
  9. - show
  10. {
  11.     printf("type: %s \nlocation:%f, %f\nsize: %f, %f\ncenter: %f %f\n", type,location.x,location.y,size.width,size.height,center.x,center.y);
  12.     return self; 
  13. }
  14.  
  15. - (NXPoint *)getLocation
  16. {
  17.     return &location;
  18. }
  19.  
  20. - (char *)getType
  21. {
  22.     return type;
  23. }
  24.  
  25. - (NXSize *)getSize;
  26. {    
  27.     return &size;
  28. }
  29.  
  30. - (NXPoint *)getCenter
  31. {
  32.     return ¢er;
  33. }
  34.  
  35. - (NXRect *)getRect
  36. {
  37.     rectangle.origin.x = location.x;
  38.     rectangle.origin.y = location.y;
  39.     rectangle.size.width = size.width;
  40.     rectangle.size.height = size.height;
  41.     return &rectangle;
  42. }
  43.  
  44. - move:(NXPoint *)newloc
  45. {
  46.     location = *newloc;
  47.     return self;
  48. }
  49.  
  50.  
  51. - setIndex:(unsigned int)i
  52. {
  53.     index = i;
  54.     return self;
  55. }
  56.  
  57. - (unsigned int)getIndex
  58. {
  59.     return index;
  60. }
  61.  
  62. - newWrite
  63. {
  64.     written = NO;
  65.     return self;
  66. }
  67.  
  68. - (BOOL)getWritten
  69. {
  70.     return written;
  71. }
  72.  
  73. - getParamList
  74. {
  75.     return paramList;
  76. }
  77.  
  78. @end
  79.  
  80.